//
//  SIButton.m
//  UI02_UILabel_UITextField_UIButton_UIImageHomeworkFirst
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 司昌宝. All rights reserved.
//

#import "SIButton.h"

@implementation SIButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
+(instancetype)buttonWithFrame:(CGRect)frame withText:(NSString *)text{
    SIButton *button = [SIButton buttonWithType:UIButtonTypeSystem];
    [button setTitle:text forState:UIControlStateNormal];
    button.frame = frame;
    [button setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
    button.titleLabel.font = [UIFont systemFontOfSize:20.0];
    return button;
}



@end
